package com.ihr360.excel.aggregatemodule.service.fallback;

import com.ihr360.commons.exception.Ihr360SpreadSheetAsynException;
import com.ihr360.excel.aggregatemodule.service.IrenshiFileDubboService;
import com.ihr360.excel.vo.ProgressContext;
import com.ihr360.excel.vo.ProgressContextFile;
import org.springframework.stereotype.Component;

@Component
public class IrenshiFileDubboServiceFallback implements IrenshiFileDubboService {
    
    @Override
    public String saveExcel(ProgressContext progressContext) {
        throw new Ihr360SpreadSheetAsynException(progressContext.getProgressKey(), "上传文件到服务器失败！");
    }

    @Override
    public ProgressContextFile getFile(String fileId, String progressKey) {
        throw new Ihr360SpreadSheetAsynException(progressKey, "从文件服务器获取文件失败！");
    }

}
